package com.ts.main.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * @Author:lk
 * @Date: 2025/6/10  00:47
 */
@Data
public class AdminRoleDto implements Serializable {

    @Schema(description = "ID,修改时必传")
    private Integer id;

    @Null
    @Schema(description = "创建者用户ID,不传")
    private Integer userId;

    @NotNull(message = "角色名称不为空")
    @Schema(description = "角色名称")
    private String roleName;

    @Schema(description = "角色描述")
    private String roleDesc;

}
